package edu.hwadee.BEIS.entity;
// default package

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * LeaderUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "leader_user", catalog = "beis")

public class LeaderUser implements java.io.Serializable {

	// Fields

	private String leaderUserId;
	private Certificate certificate;
	private String leaderUserPwd;
	private String leaderUserName;
	private String leaderUserPhone;

	// Constructors

	/** default constructor */
	public LeaderUser() {
	}

	/** minimal constructor */
	public LeaderUser(String leaderUserId, Certificate certificate, String leaderUserPwd, String leaderUserName,
			String leaderUserPhone) {
		this.leaderUserId = leaderUserId;
		this.certificate = certificate;
		this.leaderUserPwd = leaderUserPwd;
		this.leaderUserName = leaderUserName;
		this.leaderUserPhone = leaderUserPhone;
	}

	// Property accessors
	@Id

	@Column(name = "leaderuser_id", unique = true, nullable = false, length = 50)

	public String getLeaderUserId() {
		return this.leaderUserId;
	}

	public void setLeaderUserId(String leaderUserId) {
		this.leaderUserId = leaderUserId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "certificate_id", nullable = false)

	public Certificate getCertificate() {
		return this.certificate;
	}

	public void setCertificate(Certificate certificate) {
		this.certificate = certificate;
	}

	@Column(name = "leaderuser_pwd", nullable = false, length = 32)

	public String getLeaderUserPwd() {
		return this.leaderUserPwd;
	}

	public void setLeaderUserPwd(String leaderUserPwd) {
		this.leaderUserPwd = leaderUserPwd;
	}

	@Column(name = "leaderuser_Name", nullable = false, length = 10)

	public String getLeaderUserName() {
		return this.leaderUserName;
	}

	public void setLeaderUserName(String leaderUserName) {
		this.leaderUserName = leaderUserName;
	}

	@Column(name = "leaderuser_phone", nullable = false, length = 20)

	public String getLeaderUserPhone() {
		return this.leaderUserPhone;
	}

	public void setLeaderUserPhone(String leaderUserPhone) {
		this.leaderUserPhone = leaderUserPhone;
	}


}